<template>
<span>
    <table border="1">
        <thead>
            <tr>
                <td>教职工编号</td>
                <td>姓名</td>
                <td>性别</td>
                <td>年龄</td>
                <td>家庭住址</td>
                <td>手机号</td>
            </tr>
        </thead>
        <tbody>
            <tr v-for="i in arr">
                <td>{{i.thId}}</td>
                <td>{{i.thName}}</td>
                <td>{{i.thSex}}</td>
                <td>{{i.thAge}}</td>
                <td>{{i.thAddrss}}</td>
                <td>{{i.thPhone}}</td>
            </tr>
        </tbody>
    </table>
</span>
</template>
<script setup lang="ts">
import {ref} from "vue";
const arr =ref([
    {
        thId:1,
        thName:"张三",
        thSex:"男",
        thAge:"21",
        thAddrss:"北京市",
        thPhone:"12345678901"

    },
    {
        thId:2,
        thName:"李四",
        thSex:"男",
        thAge:"31",
        thAddrss:"上海市",
        thPhone:"12345678901"

    },
    {
        thId:3,
        thName:"王五",
        thSex:"男",
        thAge:"41",
        thAddrss:"河南省",
        thPhone:"65454567762"

    },
    {
        thId:4,
        thName:"赵六",
        thSex:"女",
        thAge:"21",
        thAddrss:"北京市",
        thPhone:"75634534543"

    },
    {
        thId:5,
        thName:"李煜",
        thSex:"男",
        thAge:"18",
        thAddrss:"山西省",
        thPhone:"76546523432"

    },
    {
        thId:6,
        thName:"吴林恒",
        thSex:"男",
        thAge:"19",
        thAddrss:"河南省",
        thPhone:"51243543634"

    },
    {
        thId:7,
        thName:"焦仁豪",
        thSex:"男",
        thAge:"33",
        thAddrss:"河南省",
        thPhone:"134567845345"

    },
    {
        thId:8,
        thName:"谭维维",
        thSex:"女",
        thAge:"21",
        thAddrss:"天津市",
        thPhone:"1245534523423"

    },
    {
        thId:9,
        thName:"雨欣",
        thSex:"女",
        thAge:"22",
        thAddrss:"北京市",
        thPhone:"1243431232"

    },
    {
        thId:10,
        thName:"无心",
        thSex:"男",
        thAge:"33",
        thAddrss:"北京市",
        thPhone:"1454435324324"

    }
])
</script>